package com.winit.need.mapper;

import com.winit.need.model.NeedPage;
import com.winit.need.model.NeedPdm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NeedPdmMapper {
    int deleteByPrimaryKey(@Param("needId") String needId, @Param("account") String account);

    int insert(NeedPdm record);

    int insertSelective(NeedPdm record);

    NeedPdm selectByPrimaryKey(@Param("needId") String needId, @Param("account") String account);

    int updateByPrimaryKeySelective(NeedPdm record);

    int updateByPrimaryKey(NeedPdm record);

    int deleteByNeedId(String needId);

    void insertByBatch(List<NeedPdm> needPdmList);

    List<NeedPdm> getByNeedId(String needId);
}